﻿@model DauGiaApp.Models.TaiKhoan

@{
    ViewBag.Title = "D4-Website_DangNhap";
}
<link href="@Url.Content("~/Content/dangnhap.css")" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.validate.unobtrusive.js" type="text/javascript"></script>
<h2 id = "dangnhap_title"> Chào mừng tới D4 Websile</h2>
<div class = "clear"></div>
<div id = "khungdangnhap">
    <h2>Đăng nhập</h2>
    @using (Html.BeginForm("DangNhap", "TaiKhoan"))
    { 
    <table style="width: 100%;">
        <tr>
            <td class="label"> Username :</td>
            <td>
            @*<input class="nhaplieu" name="username" type="text" />  *@  
            @Html.EditorFor(model => model.TenTaiKhoan)            
            </td>            
            <td>
            @Html.ValidationMessageFor(model => model.TenTaiKhoan)
            </td>
        </tr>
        <tr>
            <td class="label"> Password :</td>
            @*<td><input class="nhaplieu" name="password" type="password" /></td> *@     
            <td>@Html.EditorFor(model => model.MatKhau)  </td>
            <td>@Html.ValidationMessageFor(model => model.MatKhau)</td>
            
        </tr>   
        <tr>
            <td > 
            &nbsp;
            </td>
            <td>
                <div id = "forgot"> Quên 
                 <a href="#"> username</a>                                 
                or  <a href="/TaiKhoan/GoiEmailXacNhanMatKhau"> password</a>                
                </div>
                <div id = "remember">
                <input type = "checkbox"/>
                <label> Ghi nhớ tài khoản</label>
                </div>                   
                <div id = "sign in">                    
                    <input class="button" type="submit"  id = "btndangnhap" name = "btn_dangnhap" value = "Sign in" />                        
                </div>                
                 
            </td>                       
        </tr>          
    </table>
    }
    @using (Html.BeginForm("DangKy", "TaiKhoan"))
    {
        <div id = "chuacotaikhoan">
            <p> Nếu chưa có tài khoản </p>
            <input type="submit" name = "btn_dangnhap" value = "Register" />
        </div>
    }
</div>

